package com.heima.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 预约单
 * </p>
 *
 * @author 黑马程序员
 * @since 2023-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("hh_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 医院id
     */
    private Integer hospitalId;

    /**
     * 科室id
     */
    private Integer deptId;

    /**
     * 医生id
     */
    private Integer doctorId;

    /**
     * 患者id
     */
    private Integer patientId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 预约时间
     */
    private String orderDate;

    /**
     * 候诊时间
     */
    private String orderTime;

    /**
     * 诊费
     */
    private BigDecimal fee;

    /**
     * 1预约成功2已完成3已取消
     */
    private Integer state;

    /**
     * 取消时间
     */
    private LocalDateTime cancelTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
